package com.dilidili.controller;

import com.dilidili.service.INiceVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 【请填写功能名称】Controller
 * 
 * @author ruoyi
 * @date 2022-03-31
 */
@RestController
@RequestMapping("/system/video")
public class NiceVideoController
{
    @Autowired
    private INiceVideoService niceVideoService;
    //取消点赞
    @RequestMapping("/offNiceVideo")
    public Object ofNiceVideo(Integer userId,Integer videoId){
        return niceVideoService.offNiceVideo(userId,videoId);
    }
    //点赞
    @RequestMapping("/onNiceVideo")
    public Object onNiceVideo(Integer userId,Integer videoId){
        return niceVideoService.onNiceVideo(userId,videoId);
    }
}
